#-------------------------------------------------
#
# Project created by QtCreator 2013-04-24T03:50:49
#
#-------------------------------------------------


QT       += network
QT       += core


TARGET = enginebase
TEMPLATE = lib
CONFIG += create_prl link_prl staticlib

SOURCES += \
    network/networkmanager.cpp \
    network/networkconnection.cpp \
    network/networkpostjsonrequest.cpp \
    network/networkpostrequest.cpp \
    network/networkrequest.cpp \
    network/networkresponse.cpp \
    account/accountfriend.cpp \
    account/accountmember.cpp \
    account/accountuser.cpp \
    network/networkhttprequest.cpp \
    network/networkconnectionrequest.cpp \
    network/zingme/networkzingmemanager.cpp \
    network/zingme/networkzingmeconnection.cpp \
    network/zingme/networkzingmewebsocket.cpp \
    network/networkjsonresponse.cpp \
    account/accountgetfriendrequest.cpp \
    account/accountfriendresponse.cpp \
    account/accountfriendrequest.cpp \
    network/networkgetrequest.cpp \
    network/networkgetjsonrequest.cpp \
    account/accountmanager.cpp \
    network/networkjsonlistresponse.cpp \
    network/networkgetjsonlistrequest.cpp \
    network/networkconnectionjsonrequest.cpp \
    imagedownload/imageprocessor.cpp \
    imagedownload/imageloader.cpp \
    imagedownload/avatarmanager.cpp \
    account/accountevent.cpp \
    account/accountparser.cpp \
    imagedownload/photomanager.cpp \
    account/accountprofilerequest.cpp \
    account/accountprofileresponse.cpp \
    imagedownload/profilemanager.cpp \
    account/accountloginner.cpp \
    account/accountloginrequest.cpp \
    account/accountloginresponse.cpp \
    icon/iconmanager.cpp \
    network/networkposttextrequest.cpp \
    account/accountgetavatarrequest.cpp \
    network/image/imagepostimageresponse.cpp \
    network/image/imagepostimagerequest.cpp \
    network/image/imagegetimageresponse.cpp \
    network/image/imagegetimagerequest.cpp \
    network/networkabstractgetimagerequest.cpp \
    core/manager.cpp

HEADERS += \
    network/networkmanager.h \
    network/networkconnection.h \
    network/networkpostjsonrequest.h \
    network/networkpostrequest.h \
    network/networkrequest.h \
    network/networkresponse.h \
    account/accountfriend.h \
    account/accountmanager.h \
    account/accountmember.h \
    account/accountuser.h \
    network/networkhttprequest.h \
    network/networkconnectionrequest.h \
    network/zingme/networkzingmemanager.h \
    network/zingme/networkzingmeconnection.h \
    network/zingme/networkzingmewebsocket.h \
    network/networkjsonresponse.h \
    account/accountgetfriendrequest.h \
    account/accountfriendresponse.h \
    account/accountfriendrequest.h \
    network/networkgetrequest.h \
    network/networkgetjsonrequest.h \
    network/networkjsonlistresponse.h \
    network/networkgetjsonlistrequest.h \
    network/networkconnectionjsonrequest.h \
    imagedownload/imageprocessor.h \
    imagedownload/imageloader.h \
    imagedownload/avatarmanager.h \
    account/accountevent.h \
    account/accountparser.h \
    common/defines.h \
    imagedownload/photomanager.h \
    account/accountprofilerequest.h \
    account/accountprofileresponse.h \
    imagedownload/profilemanager.h \
    account/accountloginrequest.h \
    account/accountloginresponse.h \
    account/accountloginner.h \
    icon/iconmanager.h \
    network/networkposttextrequest.h \
    account/accountgetavatarrequest.h \
    network/image/imagepostimageresponse.h \
    network/image/imagepostimagerequest.h \
    network/image/imagegetimagerequest.h \
    network/image/imagegetimageresponse.h \
    network/networkabstractgetimagerequest.h \
    core/managercommon.h \
    core/manager.h


unix:!symbian { \
    maemo5 {
        target.path = /opt/usr/lib
    } else {
        target.path = /usr/lib
    }
    INSTALLS += target
}

INCLUDEPATH += $$PWD/../3rdparty/json
DEPENDPATH += $$PWD/../3rdparty/json

win32:CONFIG(release, debug|release): LIBS += -L$$OUT_PWD/../3rdparty/json/release/ -ljson
else:win32:CONFIG(debug, debug|release): LIBS += -L$$OUT_PWD/../3rdparty/json/debug/ -ljson
else:unix: LIBS += -L$$OUT_PWD/../3rdparty/json/ -ljson

INCLUDEPATH += $$PWD/../3rdparty/tufao
DEPENDPATH += $$PWD/../3rdparty/tufao

win32:CONFIG(release, debug|release): LIBS += -L$$OUT_PWD/../3rdparty/tufao/release/ -ltufao
else:win32:CONFIG(debug, debug|release): LIBS += -L$$OUT_PWD/../3rdparty/tufao/debug/ -ltufao
else:unix: LIBS += -L$$OUT_PWD/../3rdparty/tufao/ -ltufao

win32:CONFIG(release, debug|release): PRE_TARGETDEPS += $$OUT_PWD/../3rdparty/tufao/release/tufao.lib
else:win32:CONFIG(debug, debug|release): PRE_TARGETDEPS += $$OUT_PWD/../3rdparty/tufao/debug/tufao.lib
else:unix: PRE_TARGETDEPS += $$OUT_PWD/../3rdparty/tufao/libtufao.a
